package excercise;

public class EX01_Q21 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int salary = 17500;
		boolean isMarried = false;
		float tax = 0.0F;
		
		if ( isMarried == true){                    // 기혼인 경우
			// if( salary < 3000 ) tax = salary - ( salary * 0.1F ) ;
			if( salary < 6000 ) tax = salary * 0.1F ;
			else if ( salary >= 6000 ) tax = salary * 0.25F;
		}
		else if ( isMarried == false ){            // 미혼인 경우
			if( salary < 3000 ) tax = salary * 0.1F;
			else if ( salary >= 3000 ) tax = salary * 0.25F;
		}

	System.out.println( isMarried );
	System.out.println( salary );
	System.out.println( tax );
	
		
	}

}
